<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<s:include value="/app_common/common.jsp"></s:include>
<!-- 树start-->
<script type="text/javascript" src="<s:property value='webctx'/>/libs/js/tree/ztree/ztree.js"></script>
<link href="<s:property value='webctx'/>/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css"/>
<!-- 树end-->
</head>
<body>
	<div class="box1" panelWidth="500">
		<form>
			<table class="tableStyle" formMode="view">
				<tr>
					<th colspan="4">详细信息</th>
				</tr>
				<tr>
					<td>角色名称：</td>
					<td><s:property value="#parameters.r_name"/></td>
				</tr>
				<tr>
					<td>角色描述：</td>
					<td><s:property value="#parameters.r_remark"/></td>
				</tr>
				<tr>
					<td>角色权限：</td>
					<td><div><ul id="tree-1" class="ztree"></ul></div></td>
				</tr>
			</table>
		</form>
	</div>
</body>
<script type="text/javascript">
//远程JSON数据源
$.ajax({
	url:webctx+"/em/em_findFrameLeftToRoidToJson.action",
	data:{"key":"<s:property value='#parameters.r_id'/>"},
	type : "post",
	cache : false,
	dataType : 'text',
	success : function(result) {
		var result = result.toJSON();
		$.fn.zTree.init($("#tree-1"), {}, result);
	}
});


</script>
</html>